public class Sub extends Base{
    public Sub(int x,int y){
        super(x,y);
    }

    @Override
    public void calculate() {
        if(super.getY() == 0){
            System.out.println("error");
        }else{
            System.out.println(super.getX() / super.getY());
        }
    }
}
